package com.scs.application.modules.sys.mapper;

import com.scs.application.modules.sys.entity.Printer;
import com.scs.application.core.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
public interface PrinterMapper extends IBaseMapper<Printer> {
    @Update("UPDATE sys_printer SET ip = #{ip}, warehouse_id = #{warehouseId} gmt_modified = now() WHERE code = #{code}")
    int savePrinterIP(@Param("code") String printerCode, @Param("ip") String printerIP);
}
